package com.polaris.live.adapter

import android.view.MotionEvent
import com.polaris.live.common.adapter.BaseBindingAdapter
import com.polaris.live.common.adapter.VBViewHolder
import com.polaris.live.databinding.AdapterLoginBackBinding

/**
 * LoginBackAdapter
 *
 * @author Created by 半仙 on 2024/9/9/009 10:00
 */
class LoginBackAdapter : BaseBindingAdapter<AdapterLoginBackBinding, String>() {

    override fun convert(holder: VBViewHolder<AdapterLoginBackBinding>, item: String) {
        holder.vb.apply {
            scrollView.setOnTouchListener { _, event ->
                when (event.action) {
                    MotionEvent.ACTION_MOVE -> {
                        true
                    }

                    else -> false
                }
            }
        }
    }
}